package com.heroh.kettle.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class InfoDataSourceVO {

    @ApiModelProperty(value = "资讯商数据库名", required = true)
    @NotBlank(message = "资讯商数据库名不能为空")
    private String srcDb;

    @ApiModelProperty(value = "目标数据库名", required = true)
    @NotBlank(message = "目标数据库名不能为空")
    private String destDb;

    @ApiModelProperty(value = "原表", required = true)
    @NotBlank(message = "原表不能为空")
    private String srcTable;

    @ApiModelProperty(value = "目标表", required = true)
    @NotBlank(message = "目标表不能为空")
    private String destTable;

    @ApiModelProperty(value = "表字段名称", required = true)
    @NotBlank(message = "表字段名称")
    private String[] colNames;
}
